﻿@{
    ViewBag.Title = "用户管理";
}
<div id="mainbody" class="l-mainbody" style="width: 99.2%; margin: 0 auto; margin-top: 3px;">
    <div position="left" title="部门列表" id="mainmenu">
        <ul id="maintree" class="menulist">
        </ul>
    </div>
    <div position="center" id="framecenter" style="overflow: hidden;">
        <iframe frameborder="0" name="home" id="home" src="" style=" height: 100%; width: 100%;"></iframe>
    </div>
</div>
<script type="text/javascript">
    var tree = null, layout = null, node = null;
    function userList() {
        node = tree.getSelected();
        if (node) {
            if (parseInt(node.data.id) > 0) {
                $("#home").attr("src", "/user/list/" + node.data.id);
            }
        }
    }

    $(function () {
        tree = $("#maintree").ligerTree({
            checkbox: false,
            url: '/dept/root?t=' + Math.random(),
            onSelect: userList
        });

        layout = $("#mainbody").ligerLayout({ height: '100%', heightDiff: -3, leftWidth: 200, minLeftWidth: 120 });
    });
</script>
